package com.zfl;

import java.util.Scanner;

public class Q1 {

        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String s = sc.nextLine();
            for (int i = 0; i < s.length(); i++) {
                char c = s.charAt(i);
                int ascii = (int) c;
                int sum = 0;
                int temp = ascii;
                // 计算ASCII码各位数字之和
                while (temp > 0) {
                    sum += temp % 10;
                    temp /= 10;
                }
                // 输出sum个字符c，每个字符占一行
                for (int j = 0; j < sum; j++) {
                    System.out.println(c);
                }
            }
        }
}
